<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<html>
<head>
    <title>收银台</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--标准mui.css-->
    <link rel="stylesheet" href="/Public/Css/css/mui.min.css">
    <style>body{background-color: #FFF;}
    #pngpng {
        width: auto;
        height: auto;
        max-width: 30%;
        max-height: 30%;
        padding-bottom: 40px;
    }
    </style>
    <script src="/Public/js/mui.min.js"></script>
    <!--标准muiEND-->
    <link rel="stylesheet" href="/Public/weui/style/weui.min.css"/>
</head>
<body>
<div class="weui_msg">
    <div class="weui_icon_area" ><i class="weui_icon_success weui_icon_msg"></i>

    </div>
    <?php if($order['openid'] == ''): ?><p>订单未指定司机</p>
        <?php else: ?><img id="pngpng" src ="<?php echo ($paypng); ?>"   alt=""><?php endif; ?>

    <div class="weui_text_area">
        <h2 class="weui_msg_title">支付状态</h2>
        <a style="width: 30%" href="javascript:void(0)" class="weui_btn weui_btn_primary">
            <?php if($order['pay_statu'] == '1'): ?>已支付
                <?php else: ?>
                <?php if($order['status'] == '6'): ?>已支付
                    <?php elseif($order['status'] == '7'): ?>已经撤销
                    <?php elseif($order['status'] == '5'): ?>确认订单
                    <?php elseif($order['status'] == '4'): ?>已到达目的地
                    <?php elseif($order['status'] == '3'): ?>接到乘客
                    <?php elseif($order['status'] == '2'): ?>到达指定地点
                    <?php elseif($order['status'] == '1'): ?>发车
                    <?php elseif($order['status'] == '0'): ?>未支付<?php endif; endif; ?>

        </a>

        <div class="weui_cells_title">订单信息</div>
        <div class="weui_cells">
            <div class="weui_cell">
                <div>
                    <p class="weui_msg_desc" style="text-align: left">商户名称：小易出行<br />支付金额：<font color='#76EE00'>￥<?php echo ($order['price']); ?></font><br />下单时间：<?php echo (date('Y-m-d H:i:s',$order['addtime'])); ?><br />订单编号：<?php echo ($order['orderid']); ?></p>
                </div>
            </div>
        </div>
    </div>

    <div class="weui_opr_area">
        <p class="weui_btn_area">
            <?php if($order['status'] == '6' and $order['isevaluate'] == '0'): ?><a href="<?php echo U('Evaluate/createEvaluate',array('orderid'=>$order['orderid']));?>" class="weui_btn weui_btn_primary">
                    去评价
                </a>
                <?php elseif($order['status'] == '6' and $order['isevaluate'] == '1'): ?> <a href="#" class="weui_btn weui_btn_primary">
                已评价
            </a><?php endif; ?>
            <?php if($order['status'] == '6' and $order['iscomplaint'] == '0'): ?><a href="<?php echo U('Complaint/createComplaint',array('orderid'=>$order['orderid']));?>" class="weui_btn weui_btn_primary">
                    投诉
                </a>
                <?php elseif($order['status'] == '6' and $order['iscomplaint'] == '1'): ?> <a href="#" class="weui_btn weui_btn_primary">
                已投诉
            </a><?php endif; ?>

        <p><?php if(isset($evaluate["servicescore"])): ?>服务评分：<?php echo ($evaluate['servicescore']); ?>分<?php endif; ?></p>
        <p><?php if(isset($evaluate["driverscore"])): ?>司机评分：<?php echo ($evaluate['driverscore']); ?>分<?php endif; ?></p>
        <p><?php if(isset($evaluate["vehiclescore"])): ?>车辆评分：<?php echo ($evaluate['vehiclescore']); ?>分<?php endif; ?></p>
        </p>
    </div>
    <div class="weui_text_area">
        <p class="weui_msg_desc">如需退款请联系客服</p>
    </div>
    <div class="weui_extra_area">
        <a href="">查看详情</a>
    </div>
</div>
<!-- <link rel="stylesheet" type="text/css" href="/Public/Css/css/mui.min.css"> -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_742744_grqfklr7az.css" />
<style>
    .mui-tab-item .iconfont {
    font-size: 28px;
    margin-bottom: 3px;
    display: block;
}
.mui-tab-item .mui-tab-label {
    font-size: 12px;
}
.mui-bar { 
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.13);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.13); 
}
.mui-bar-tab{
    height: 55px;
}
</style>
<nav class="mui-bar mui-bar-tab bottom-bar footer-bar">

        <a class="mui-tab-item " href="/index.php?s=/Index/index">
                <span class="iconfont icon-car">
        </span>
            <span class="mui-tab-label">乘车</span>
        </a>
        <a class="mui-tab-item "  href="/index.php?s=/Index/order">
            <span class="iconfont icon-icon-"></span>
            <span class="mui-tab-label">我的订单</span>
        </a>
   
        <a class="mui-tab-item " href="/index.php?s=/Index/myinfo">
            <span class="iconfont icon-gerenzhongxin "></span>
            <span class="mui-tab-label">个人中心</span>
        </a>
    </nav>

    <script>
       mui('body').on('tap','a',function(){window.location.href=this.href;});
    </script>
</body>
</html>